export type UserLoginType = {
  username: string
  password: string
}

export type UserType = {
  username: string
  password: string
  role: string
  roleId: string
  permissions: string | string[]
  accessToken?: string
}

export type UserInfoType = {
  avatar: string
  id: number
  nickname: string
}

export type DeptInfoType = {
  name: string
  parentId: number
  status: number
  standard: number
  regionCode: number
  regionName: string
  nature: number
  id: number
  sort?: number
  labelId?: undefined
  phone?: undefined
  email?: undefined
  leaderUserId?: undefined
  parentName?: undefined
  leaderDeptId?: undefined
  leaderDeptName?: undefined
  createTime?: number
  labelName?: undefined
}
